<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="aa" uri="/WEB-INF/tld/ajaxanywhere.tld" %>
<%@ taglib prefix="datapager" uri="/WEB-INF/tld/pageTag.tld" %>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>jsp</title>
<script src="/webjars/jquery/3.5.1/jquery.js"></script>
<script src="/aa.js"></script>

<link href="/page.css" type="text/css" rel="stylesheet">
</head>
<body>

	<h1>${msg}</h1>
	<br />
	<button type="button" name="btQuery" id="btQuery">查询列表</button>
	<%--<form name="searchFrom" id="searchFrom"></form>--%>
	<aa:zone name="zoneJ">
		<ul>
			<c:forEach var="o" items="${page.pageList}" varStatus="s">
				<li>${s.count} , id: ${o.id} , name: ${o.name} ,createDate: ${o.createDate}</li>
			</c:forEach>
		</ul>
			<datapager:page pageNo="${page.pageNo}" total="${page.total}" totalPage="${page.totalPage}" />
	</aa:zone>

</body>

<script type="text/javascript">
	$('#btQuery').click(function() {
		ajaxAnywhere.getAJAX('/j/list?pageNo='+1, 'zoneJ');
	});

</script>
<script src="/page.js"></script>
</html>
